package cn.newtouch.system.mapper;

import cn.newtouch.basic.mapper.BaseMapper;
import cn.newtouch.system.domain.Menu;
import cn.newtouch.system.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    //保存角色对应权限
    void saveRolePermission(@Param("id") Long id, @Param("permissions") List<Long> permissions);
    //保存角色对应菜单
    void saveRoleMenu(@Param("id")Long id, @Param("menus")List<Long> menus);


    //删除三个外键管理表
    void removeEmployeeRole(Long id);

    void removeRoleMenu(Long id);

    void removeRolePermission(Long id);
}
